package com.itljm.cxrMarket.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itljm.cxrMarket.entity.Reviews;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface ReviewsService extends IService<Reviews> {
    // 分页查询所有评论
    List<Reviews> selectReviewsPage(Page<Reviews> page, Wrapper<Reviews> entityWrapper);
    boolean addReview(Reviews review);
    boolean updateReview(Reviews review);
    boolean updateLikeNum(Long userId, Integer reviewId);
    boolean removeReview(Long userId);
    Reviews selectLikeTop(Integer productId);
}
